using System;

namespace ERP.ERPSystem.WarehouseManagement.Dto
{
    /// <summary>
    /// 赋码管理-物料产品选择DTO
    /// </summary>
    public class CodingMaterialProductDTO
    {
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterielCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterielName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specifications { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string UnitsId { get; set; }

        /// <summary>
        /// 物料/产品
        /// </summary>
        public string MaterielType => MaterielTypePid == 1 ? "物料" : "产品";

        /// <summary>
        /// 物料类型ID
        /// </summary>
        public int MaterielTypePid { get; set; }

        /// <summary>
        /// 所属分类
        /// </summary>
        public string Category { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
} 